﻿using FluentMigrator;

namespace ProgressTracker.Data.Migrations
{
    [Migration(201403172226)]
    public class _2226_Create_User_Table : Migration
    {
        public override void Up()
        {
            Create.Table("Users")
                .WithColumn("Id").AsInt32().NotNullable().PrimaryKey().Identity()
                .WithColumn("Email").AsString().NotNullable()
                .WithColumn("PasswordHash").AsString().NotNullable();
        }

        public override void Down()
        {
            Delete.Table("Users");
        }
    }
}
